package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 筒仓测距设备表
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ck_device_range_result")
public class DeviceRangeResult implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private Integer shopId;
	private Integer deviceId;

	private Integer deviceType;

	@ExcelColumn(value = "设备名称",col = 3)
	private String deviceName;
	@ExcelColumn(value = "设备编号",col = 2)
	private String deviceNum;
	private String dataCode;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	/**
	 * 有效角度
	 */
	private Double effectiveAngle;

	/**
	 *  当前高度
	 */
	private Double height;

	/**
	 *  当前数据的平均高度
	 */
	private Double volume;

	/**
	 *  当前重量
	 */
	private Double weight;

	/**
	 *  当前温度
	 */
	@ExcelColumn(value = "当前温度",col = 5)
	private String temperature;
	/**
	 *  当前湿度
	 */
	@ExcelColumn(value = "当前湿度",col = 6)
	private String humidity;
	/**
	 * 筒仓  满仓状态  0 -  空仓  1 -  正常状态 2 - 满仓
	 */
	private Integer storeState;


	/**
	 *  记录保存的表名
	 */
	private String recordTableName;



	@ExcelColumn(value = "当前重量",col = 4)
	@TableField(exist = false)
	private String weightDun;


	@ExcelColumn(value = "测量时间",col = 7)
	@TableField(exist = false)
	private String createTimeStr;


	@ExcelColumn(value = "企业名称",col = 1)
	@TableField(exist = false)
	private String shopName;


	@TableField(exist = false)
	private Integer isShowEmpty;

	@TableField(exist = false)
	private Integer isShowFull;
}
